<?php
global $base_url;
?>
<h3>Exported Order Files</h3>

<table>
    <thead>
        <tr>
            <th>ID</th>
            <th>Filename</th>
            <th>Organization</th>
            <th>Campaign</th>
            <th>Start Date</th>
            <th>End Date</th>
            <th>Create Time</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php if (count($data) != 0): ?>
            <?php foreach ($data as $row) : ?>
                <tr>
                    <td><?php print $row['id']; ?></td>
                    <td><a href="<?php print $base_url; ?>/order_export/reports/<?php print $row['filename']; ?>"><?php print $row['filename']; ?></a></td>
                    <td><?php print $row['organization']; ?></td>
                    <td><?php print $row['campaign']; ?></td>
                    <td><?php print $row['start_date']; ?></td>
                    <td><?php print $row['end_date']; ?></td>
                    <td><?php print $row['create_time']; ?></td>
                    <td><form action="<?php echo $base_url; ?>/admin/store/orders/export" accept-charset="UTF-8" method="post" id="core101-export-order-file-form">
                            <input type="submit" name="delete" id="delete<?php print $row['id'] ?>"  value="Delete File <?php print $row['id'] ?>" class="form-submit">
                        </form></td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
    </tbody>
</table>